@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';
@import './tabel.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}


html {
  height: 100%;
  box-sizing: border-box;
  /*隐藏滚动条，当IE下溢出，仍然可以滚动*/
  -ms-overflow-style:none;
  /*火狐下隐藏滚动条*/
  scrollbar-width: none;
}
// 谷歌浏览器去滚动条
html::-webkit-scrollbar{
  display:none;
}
.el-image-viewer__close{
  color: #fff;
}
#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: ' ';
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  border-radius: 4px;
  padding: 20px;
  background-color: #ffffff;
  min-height: 100%;
}
// 无白色背景的全局样式
.app-container-trans {
  // border-radius: 4px;
  // padding: 20px;
  // min-height: 100%;
  height: 100%;
  position: relative;
  .tree_control{
    width: 20%;
    position: absolute;
    top: 0;left: 0;
    background: #fff;
    border-radius: 4px 0px 0px 4px;
    padding: 20px 20px 0;
    overflow: hidden;
    overflow-y: auto;
    height: 100%;
    .title{
      padding-bottom: 10px;
    }
    &::-webkit-scrollbar {
      width: 6px;
    }
    &::-webkit-scrollbar-thumb {
      border-radius: 10px;
      background: #eee;
    }
  }
  .container{
    width: calc(80% - 5px);
    position: absolute;
    top: 0;right:  0;
    background: #fff;
    border-radius: 0px 4px 4px 0px;
    padding: 20px 20px 0;
    height: 100%;
  }
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

.form_table {
  // 全局样式
  margin-bottom: 10px;

  .el-col {
    // ie浏览器样式兼容问题---需要 酌情使用
    height: 46px !important;
  }
}

// 全局样式 表格上下间距
.el-table {
  margin: 10px 0;
}

// 全局样式 弹窗title
.el-dialog__header {
  border-bottom: 1px solid #ccc;
}

// 全局样式 选择框宽度
.el-select {
  width: 100%;
}
.el-card {
  margin: 10px 0;
}

// 解决element-ui的table表格控件表头与内容列不对齐问题
.el-table th.gutter {
  display: table-cell !important;
}
.view {
  cursor: pointer;
  color: #2b8cfd;
}

.el-button-mine + .el-button, .el-button + .el-button-mine{
  margin-left: 10px;
}

// 所有的树结构弹窗都固定高度并可滚动
.tree_dialog .el-dialog__body {
  height: 60vh;
  overflow: hidden;
  overflow-y: auto;
}
//avue
.preview-form{
  height: auto!important;
  overflow-y: auto!important;
}
.x-spreadsheet-toolbar-btns{
  margin-left: 30px !important;
}
.ml10{
  margin-left: 10px;
}

.Customized .CodeMirror {
  font-family: monospace;
  height: 190px !important;
  color: black;
  direction: ltr;
}
.jsoneditor-vue{
  height: 100%;
}
.printSet {
  background-image: url('../assets/images/bianzu.png') !important;
  background-size: 19px;
  background-position: left top;
  background-repeat: no-repeat;
  position: absolute;
  opacity: 1!important;
}
.qrCodes {
  background-image: url('../assets/images/qrcode.png') !important;
  background-size: 19px;
  background-position: left top;
  background-repeat: no-repeat;
  position: absolute;
  opacity: 1!important;
}
.barCodes {
  background-image: url('../assets/images/tiaoxingma.png') !important;
  background-size: 19px;
  background-position: left top;
  background-repeat: no-repeat;
  position: absolute;
  opacity: 1!important;
}
.collapse-input-style {
  .el-input__inner ,.el-textarea__inner{
    background: #263445 !important;
    border: 1px solid #3f5673;
    color:#a8e3ff
  }
  .el-slider__runway{
    height: 2px;
    background-color:#5e6b82
  }
  .el-slider__bar{
    height: 2px;
  }
  .el-slider__button-wrapper{
    top: -17px;
  }
  .el-slider__button{
    width: 14px;
    height: 14px;
  }
  .el-switch__core{
    background-color:#5e6b82;
    border: 1px solid #3f5673;
  }
  .el-input-group__append, .el-input-group__prepend{
    background: #5e6b82 !important;
    border: 1px solid #3f5673;
    color:#a8e3ff
  }
  .el-input-number__increase, .el-input-number__decrease{
    background: #5e6b82 !important;
    border: 1px solid #3f5673;
    color:#a8e3ff
  }
  .el-input-number.is-controls-right .el-input-number__increase{
    border-bottom: 1px solid #3f5673;
  }
  .el-input-number.is-controls-right .el-input-number__decrease{
    border-left: 1px solid #3f5673;
  }
  .el-form-item__label {
    font-size: 12px;
    color: #deedff!important;
  }
}
